﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>后台管理</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript" src="${ctx}/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${ctx}/js/cookie.js"></script>
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/reset.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/thems.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/css/treeview/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/css/treeview/bootstrap-treeview.css" />
<script type="text/javascript"
	src="${ctx}/js/treeview/bootstrap-treeview.js"></script>
<style>
li.list-group-item.node-tree {
	padding-left: 0px;
	width: 228px;
	text-align: center;
}

</style>
</head>
<script type="text/javascript">
	$(function() {
		var data = [ {
			"text" : "设备管理",
			"url" : "#",
			"nodes" : [ {
				"text" : "设备列表",
				"url" : "${ctx}/qrcode/toQrcodePage"
			},{
				"text" : "设备基础数据",
				"url" : "${ctx}/basicsData/toBasicsData"
			},{
				"text" : "工作原理",
				"url" : "${ctx}/electric/toElectricPage"
			},{
				"text" : "配线图接线图",
				"url" : "${ctx}/pjinfo/toPjinfoPage"
			}, {
				"text" : "施工质量记录",
				"url" : "${ctx}/construction/toConstructionPage"
			},{
				"text" : "设备维修登记",
				"url" : "${ctx}/registration/toRegistrationPage"
			},{
				"text" : "室内",
				"url" : "${ctx}/internal/toInternalPage"
			},{
				"text" : "室内2",
				"url" : "${ctx}/internalInfo/toInternalInfoPage"
			}]	
		},
		{
			"text" : "用户管理",
			"url" : "#",
			"nodes" : [ {
				"text" : "用户列表",
				"url" : "${ctx}/toUserPage"
			} ]
		} ]
		$('#tree').treeview({
			data : data,
			levels : 0,
			expended : 0,
			onNodeSelected : function(event, data) {
				//这是有子节点的
				if (data.nodes != undefined) {
				} else {
					//通过节点名称，获取对应的url
					//parent.right.src=data.url;
					window.parent.frames['main'].location.href = data.url;
				}
			}
		});

	})
</script>
<!--框架高度设置-->
</head>

<body>
 <div id="tree" >
	</div>
</body>
</html>
